import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
// import index from "../views/zt/index.vue"
Vue.use(VueRouter)
const routes = [{
    path: '/',
    name: 'Home',
    redirect: "/indexx",
    component: Home,
    children: [
      //yjx
      {
        path: 'jjfa',
        name: 'Jjfa',
        component: () => import('../views/yjx/jjfa/jjfa.vue'),
        children: [{
            path: 'jpythgs',
            name: 'Jpythgs',
            component: () => import('../views/yjx/jjfa/jpythgs.vue'),
          },
          {
            path: 'gnyjz',
            name: 'Gnyjz',
            component: () => import('../views/yjx/jjfa/gnyjz.vue')
          }, {
            path: 'gdzc',
            name: 'Gdzc',
            component: () => import('../views/yjx/jjfa/gdzc.vue')
          }
        ]
      },
      {
        path: 'index',
        name: 'Index',
        component: () => import('../views/yjx/gywm/index.vue'),
        children: [{
            path: 'gywm',
            name: 'Gywm',
            component: () => import('../views/yjx/gywm/gywm.vue'),
          },
          {
            path: 'bgtp',
            name: 'Bgtp',
            component: () => import('../views/yjx/gywm/bgtp.vue')
          }, {
            path: 'gctp',
            name: 'Gctp',
            component: () => import('../views/yjx/gywm/gctp.vue')
          }
        ]
      },
      {
        path: 'cpzx',
        name: 'Cpzx',
        component: () => import('../views/yjx/cpzx/index.vue'),
        children: [{
          path: 'rjjs',
          name: 'Rjjs',
          component: () => import('../views/yjx/cpzx/rjjs.vue')
        }, {
          path: 'yjcp',
          name: 'Yjcp',
          component: () => import('../views/yjx/cpzx/yjcp.vue')

        }, ]
      },
      //靳国迎
      {
        path: '/indexx',
        name: 'Index',
        component: () =>
          import('../views/zt/index.vue')
      },
      //张童
      {
        path: '/ztone',
        name: 'ztone',
        component: () =>
          import('../views/zt/ztone.vue')
      },
      {
        path: '/zttow',
        name: 'zttow',
        component: () =>
          import('../views/zt/zttow.vue')
      },
      {
        path: '/ztthree',
        name: 'ztthree',
        component: () =>
          import('../views/zt/ztthree.vue')
      },
      {
        path: '/ztfour',
        name: 'ztfour',
        component: () =>
          import('../views/zt/ztfour.vue')
      },
      {
        path: '/ztfive',
        name: 'ztfive',
        component: () =>
          import('../views/zt/ztfive.vue')
      },
      {
        path: '/ztsix',
        name: 'ztsix',
        component: () =>
          import('../views/zt/ztsix.vue')
      },
      {
        path: '/ztqi',
        name: 'ztqi',
        component: () =>
          import('../views/zt/ztqi.vue')
      },
      {
        path: '/ztba',
        name: 'ztba',
        component: () =>
          import('../views/zt/ztba.vue')
      }, //邢瑞文
      {
        path: '/xing',
        name: 'xing',
        component: () =>
          import('../views/xrw/cooperation.vue')
      },
      {
        path: '/service',
        name: 'service',
        component: () =>
          import('../views/xrw/service.vue')
      },
      {
        path: '/coop',
        name: 'coop',
        component: () =>
          import('../views/xrw/coop.vue')
      },
      {
        path: '/payoff',
        name: 'payoff',
        component: () =>
          import('../views/xrw/payoff.vue')
      },
      {
        path: '/cont',
        name: 'cont',
        component: () =>
          import('../views/xrw/contact.vue')
      },

      //靳国迎
      {
        path: '/indexx',
        name: 'Index',
        component: () =>
          import('../views/zt/index.vue')
      },
      //张童
      {
        path: '/ztone',
        name: 'ztone',
        component: () =>
          import('../views/zt/ztone.vue')
      },
      {
        path: '/zttow',
        name: 'zttow',
        component: () =>
          import('../views/zt/zttow.vue')
      },
      {
        path: '/ztthree',
        name: 'ztthree',
        component: () =>
          import('../views/zt/ztthree.vue')
      },
      {
        path: '/ztfour',
        name: 'ztfour',
        component: () =>
          import('../views/zt/ztfour.vue')
      },
      {
        path: '/ztfive',
        name: 'ztfive',
        component: () =>
          import('../views/zt/ztfive.vue')
      },
      {
        path: '/ztsix',
        name: 'ztsix',
        component: () =>
          import('../views/zt/ztsix.vue')
      },
      {
        path: '/ztqi',
        name: 'ztqi',
        component: () =>
          import('../views/zt/ztqi.vue')
      },
      {
        path: '/ztba',
        name: 'ztba',
        component: () =>
          import('../views/zt/ztba.vue')
      },
    ],
  },
  {
    path: '/online',
    name: 'online',
    component: () => import('../views/Online.vue')
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
      import( /* webpackChunkName: "about" */ '../views/About.vue')
  },


  {
    path: '/weibu',
    name: 'weibu',
    component: () =>
      import('../components/weibu/weibu.vue')
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router